package org.dromara.pill.domain.bo;

import org.dromara.pill.domain.PillFactory;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 生产厂家信息业务对象 pill_factory
 *
 * @author Lion Li
 * @date 2023-07-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = PillFactory.class, reverseConvertGenerate = false)
public class PillFactoryBo extends BaseEntity {

    /**
     * 厂家ID
     */
    @NotNull(message = "厂家ID不能为空", groups = { EditGroup.class })
    private Long factoryId;

    /**
     * 厂家名称
     */
    @NotBlank(message = "厂家名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String factoryName;

    /**
     * 厂家编码
     */
    @NotBlank(message = "厂家编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String factoryCode;

    /**
     * 联系人
     */
    @NotBlank(message = "联系人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String contact;

    /**
     * 电话
     */
    @NotBlank(message = "电话不能为空", groups = { AddGroup.class, EditGroup.class })
    private String phone;

    /**
     * 关键字
     */
    @NotBlank(message = "关键字不能为空", groups = { AddGroup.class, EditGroup.class })
    private String keyword;

    /**
     * 状态
     */
    @NotBlank(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
